home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 July
/
EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso
/
earcd
/
grafica
/
video easel
/
camrexx
/
isingi.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-03-30
|
520b
|
21 lines
/* Microcannonical Ising Model, by an idea of Toffoli, in CAMRexx by THOR */
MakeAlgorithm:
PLANEALGORITHM neumann hvphases
return
MakePlane:
lattice=(horz=vert)
if phase=1 then lattice=~lattice
/* handle only even or odd sublattice */
if lattice then; do
sum=north+south+east+west
if sum=2 then new=~center /* flip spin if two nbrs. */
else new=center /* else preserve */
SETPLANE new
end; else; do;
SETPLANE center
end
return